﻿@model MessageModel
<div class="modal fade">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">关闭</span></button>
                <h4 class="modal-title" id="myModalLabel">@Model.PageTitle</h4>
            </div>
            <div class="modal-body" id="modalcontent">
                @using (Html.Bootstrap().BeginForm(c => c.Horizontal()))
                {
                    @Html.ValidationSummary()
                    <div class="form-group">
                        @Html.LabelFor(m => m.RecipientName, new { @class = "col-sm-2 control-label" })
                        <div class="col-sm-10">
                            @Html.Bootstrap().TextBoxFor(m => m.RecipientName)
                        </div>
                    </div>
                    <div class="form-group">
                        @Html.LabelFor(m => m.Content, new { @class = "col-sm-2 control-label" })
                        <div class="col-sm-10">
                            @Html.Bootstrap().TextareaFor(m => m.Content)
                        </div>
                    </div>
                }
            </div>
            <div class="modal-footer">

                <div class="pull-right">
                    <button class="btn btn-default" type="button" onclick="window.app.saveForm(event,'@Url.Action("Draft") ');"><i class="fa fa-pencil"></i> 草稿</button>
                    @Html.Bootstrap().Button("发送").Style(BootstrapStyle.Primary).Click("window.app.saveForm(event,'" + @Url.Action("Send") + "');")
                </div>
                <div class="pull-left">
                    @Html.Bootstrap().Button("关闭").Style(BootstrapStyle.Default).Attribute("data-dismiss", "modal")
                </div>
            </div>
        </div>
    </div>
</div>